<?php


namespace app\controllers;


use app\models\request\ReqTypeAdd;
use app\service\TypeService;

class TypeUpdateController extends BaseJsonController
{
    /**
     * @param $req ReqTypeAdd
     * @param $userInfo
     * @return array|mixed
     */
    public function doService($req, $userInfo)
    {
        $s = new TypeService();
        return $s->add($req);
    }


    /**
     * @return ReqTypeAdd
     */
    protected function injectionReq()
    {
        return new ReqTypeAdd();
    }


}